package com.eusun.design.chain;

public class Demo {
    public static void main(String[] args) {
        AbstractLogger consoleLogger = new ConsoleLogger();

        consoleLogger.logMessage(AbstractLogger.ERROR, "error");
        System.out.println();
        consoleLogger.logMessage(AbstractLogger.DEBUG, "debug");
        System.out.println();
        consoleLogger.logMessage(AbstractLogger.INFO, "console");
    }
}
